using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace StoredProcedureMaker
{
    public partial class FormSPDetail : Form
    {
        DatabaseDB databaseDB = new DatabaseDB();
        
        public FormSPDetail(string spName)
        {
            InitializeComponent();
            
            BindSPDetail(spName);

        }

        private void BindSPDetail(string spName)
        {
            gvSPDetail.DataSource = databaseDB.GetSPDetail(spName);
         
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}